package com.mofum.scope.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mofum.scope.dto.UserDto;
import com.mofum.scope.entity.Page;
import com.mofum.scope.entity.User;
import com.mofum.scope.entity.input.DpRoleMenuPageInput;
import com.mofum.scope.entity.output.DpRoleMenuOutput;

/**
 * @author developer@omuao.com
 * @since 2019-03-28
 **/
public interface IUserService extends IService<User> {
    void initTable();

    void addUser(User user);

    List<User> queryUser(UserDto user, Page page);

    public IPage<DpRoleMenuOutput> dpUserPage(com.baomidou.mybatisplus.extension.plugins.pagination.Page page,
                                              DpRoleMenuPageInput input);

    int delete(UserDto userDto);
}